package com.project.collectAPI.entity.SuperMarket;

import lombok.Data;

/*一级分类*/
@Data
public class SuperMarketFirstClass extends SuperMarket {
    /*public String PackUp="收起:380:156";
    public String All="全部:396:177";*/

    public static volatile String curFirstName="";

    public String[] firstArr=new String[]{
            //0
            "水果蔬菜:130:210",
            //1
            "肉禽鱼蛋:210:210",
            //2
            "火锅季:286:210",
            //3
            "快手菜:365:210",
            //4
            "熟食冻品:51:313",
            //5
            "酒水冲饮:130:313",
            //6
            "乳品烘焙:210:313",
            //7
            "粮油调味:285:313",
            //8
            "休闲零食:365:313",
            //9
            "营养冲调:51:413",
            //10
            "母婴玩具:130:413",
            //11
            "纸品家清:210:413",
            //12
            "个护美妆:286:413",
            //13
            "家居百货:366:413",
            //14
            "家纺服饰:51:515",
            //15
            "家电数码:130:515",
            //16
            "沃选购:286:515",
            //17
            "宠物之家:365:515",
            //18
            "鲜花馆:51:616",
            //19
            "新年囤:125:616"
    };

    public static String getClassName(int id){
        String className="-1";
        switch (id){
            case 1611402142:
                className="新品寻宝";
                break;
            case 1479400142:
                className="水果蔬菜";
                break;
            case 1045004142:
                className="肉禽鱼蛋";
                break;
            case 1337200142:
                className="火锅季";
                break;
            case 1674802142:
                className="快手菜";
                break;
            case 1093400142:
                className="熟食冻品";
                break;
            case 1045402142:
                className="酒水冲饮";
                break;
            case 1047206142:
                className="乳品烘焙";
                break;
            case 1046202142:
                className="粮油调味";
                break;
            case 1047003142:
                className="休闲零食";
                break;
            case 1663605142:
                className="营养冲调";
                break;
            case 1167800142:
                className="母婴玩具";
                break;
            case 1046003142:
                className="纸品家清";
                break;
            case 1047004142:
                className="个护美妆";
                break;
            case 1045404142:
                className="家居百货";
                break;
            case 1208600142:
                className="家纺服饰";
                break;
            case 1047207142:
                className="家电数码";
                break;
            case 1434200142:
                className="全球好物";
                break;
            case 1376200142:
                className="沃选购";
                break;
            case 1047002142:
                className="宠物之家";
                break;
            case 1513006142:
                className="鲜花馆";
                break;
            case 1723600142:
                className="新年囤新货";
                break;
            default:
                className="-1";
                break;
        }
        return className;
    }

    public static String getCode(String className){
        String code="-1";
        switch (className){
            case "水果蔬菜":
                code="fd";
            break;
            case "肉禽鱼蛋":
                code="yd";
                break;
            case "火锅季":
                code="hg";
                break;
            case "快手菜":
                code="ks";
                break;
            case "熟食冻品":
                code="sd";
                break;
            case "酒水冲饮":
                code="js";
                break;
            case "乳品烘焙":
                code="hp";
                break;
            case "粮油调味":
                code="ly";
                break;
            case "休闲零食":
                code="xx";
                break;
            case "营养冲调":
                code="yy";
                break;
            case "母婴玩具":
                code="my";
                break;
            case "纸品家清":
                code="zp";
                break;
            case "个护美妆":
                code="gh";
                break;
            case "家居百货":
                code="jj";
                break;
            case "家纺服饰":
                code="jf";
                break;
            case "家电数码":
                code="sm";
                break;
            case "沃选购":
                code="wg";
                break;
            case "宠物之家":
                code="cw";
                break;
            case "鲜花馆":
                code="xh";
                break;
            case "新年囤新货":
                code="ny";
                break;
            default:
                code="-1";
                break;
        }
        return code;
    }

}
